{extend name="base" /}{block name="seo"}
<title>在线投稿 - {$site.name}</title>
<meta name="keywords" content="{$site.keywords}">
<meta name="description" content="{$site.description}">
{/block}
{block name="css"}
<link href="__HOME__/css/user.css" rel="stylesheet" type="text/css">
<style>
    .layui-form-select dl{
        z-index: 10002;
    }
</style>
{/block}
{block name="body"}
<div class="container">
    <div class="user">
        {include file="index/menu"}


        <div class="user-comment user-box fl">
                <div class="title">
                    在线投稿
                    <span style="float: right">
                        <a  target="_blank" href="{:url('index/page/detail',array('alias'=>'tg_help'))}" title="投稿规则">投稿规则</a>
                        <a  href="{:url('user/index/tg_log')}" title="投稿记录">投稿记录</a>

                    </span>
                </div>
                <div class="list">
                    <form class="layui-form atuikeFormSkin1" id="list_form">
                        <div class="layui-form-item">
                            <label class="layui-form-label">投稿标题<font color="#FF0000"> *</font></label>
                            <div class="layui-input-block">
                                <input type="text"  name="title" placeholder="请填写标题" lay-verify="required"  lay-verify="title"  autocomplete="off"  class="layui-input"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">投稿内容<font color="#FF0000"> *</font></label>
                            <div class="layui-input-block">
                                <textarea name="content"  rows="20" class="layui-textarea editor" placeholder=""></textarea>
                            </div>
                        </div>
                        <div class="inline-form layui-clear">
                            <div class="layui-form-item">
                                <label class="layui-form-label">投稿专区</label>
                                <div class="layui-input-inline">
                                    <select name="category_id"  lay-verify="required" title="选择分类">
                                        <option value="">请选择分类</option>
                                        {volist name="category" id="vo"}
                                        <option  value="{$vo.id}" >{$vo.title|raw}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item" style="width: 230px;">
                                <label  class="layui-form-label">投稿封面 <i class="layui-icon layui-icon-tips" id="notice1"></i></label>
                                <div class="layui-input-block">
                                    <button  type="button" class="layui-btn layui-btn-primary uploadImg">
                                        <i class="layui-icon layui-icon-picture-fine"></i> 上传
                                    </button>
                                    <input type="hidden" name="cover_img">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">类　　型</label>
                            <div class="layui-input-block">
                                <input type="radio" name="type" value="text"    title="纯文章" lay-filter="typeradio" checked>
                                <input type="radio" name="type" value="file"    title="有附件" lay-filter="typeradio">
                            </div>
                        </div>
                        <div class="layui-form-item zips" hidden>
                            {:hooks('attachlink.link_add',array('subject_id'=>0,'subject'=>'ARTICLE'))}
                        </div>
                        <div class="layui-form-item jdt" hidden>
                            <label class="layui-form-label"></label>
                            <div class="layui-input-block">
                                <div class="layui-progress">
                                    <div class="layui-progress-bar" lay-percent="0%"></div>
                                </div>
                            </div>
                        </div>
                        {if $articleConfig['award_poster']}
                        <div class="layui-form-item">
                            <label class="layui-form-label">投稿奖励</label>
                            <div class="layui-input-block">
                                <input type="checkbox"    name="is_need" placeholder="" lay-skin="switch" lay-filter="payopen">
                            </div>
                        </div>
                        <div class="inline-form layui-clear pays" hidden>
                            <div class="layui-form-item">
                                <label class="layui-form-label">真实姓名</label>
                                <div class="layui-input-block">
                                    <input type="text" name="reward_name" class="layui-input" placeholder="真实姓名"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">支付宝账号</label>
                                <div class="layui-input-block">
                                    <input type="text" class="layui-input" name="reward_account" placeholder="支付宝账户">
                                </div>
                            </div>

                        </div>
                        {/if}
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn atuikeBtnSkin1" lay-submit lay-filter="submitAll"  >立即投稿</button>
                            </div>
                        </div>
                    </form>
                 </div>



    </div>
</div>
</div>

{/block}
{block name="js"}
    <script src="/static/plugs/wangeditor/wangEditor.min.js"></script>
<script src="__HOME__/js/tougao.js"></script>
{/block}